class Lawyer
  # 覆写method_missing方法可以调用实际上不存在的方法
  def method_missing(method, *args, &block)
    puts "You called : #{method}(#{args.join(',')})"
    puts '(You also passed it a block)' if block
  end
end

bob = Lawyer.new
bob.talk_simple('a', 'b') do
  # a block
end
